package com.rc.saas.mini.model.tenant;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.rc.saas.mini.common.base.BaseModel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description 
 * @Author  
 * @Date: 2022-04-24
 */

@ApiModel(value=" tenant_user ", description=" 运营商管理员表,由平台方统一设置 ")
public class TenantUser extends BaseModel{ 

    @ApiModelProperty(value = "管理员ID")
    private Long tenantUserId;
 
    @ApiModelProperty(value = "运营商编号")
    private String tenantCode;
 
    @ApiModelProperty(value = "分销运营商/场地方才有，关联tenant_operator表")
    private String tenantOperatorCode;
 
    @ApiModelProperty(value = "企业ID,关联enterprise_member表")
    private Long enterpriseId;
 
    @ApiModelProperty(value = "企业主帐号会员ID,关联enterprise表")
    private Long enterpriseMemberId;
 
    @ApiModelProperty(value = "用户类型（0 运营商 1 分销商 2企业用户 3运营商下级用户 4.站点管理员）默认0")
    private String userType;
 
    @ApiModelProperty(value = "角色ID")
    private Long tenantRoleId;
 
    @ApiModelProperty(value = "组织ID")
    private Long tenantOrgId;
 
    @ApiModelProperty(value = "组织标签,可以多个,使用半角逗号分隔")
    private String tenantOrgTag;
 
    @ApiModelProperty(value = "登录名称")
    private String loginName;
 
    @ApiModelProperty(value = "真实姓名")
    private String realName;
 
    @ApiModelProperty(value = "管理员密码")
    private String password;
 
    @ApiModelProperty(value = "用户头像")
    private String headImg;
 
    @ApiModelProperty(value = "电子邮箱")
    private String email;
 
    @ApiModelProperty(value = "手机号码")
    private String mobile;
 
    @ApiModelProperty(value = "最后登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastLoginTime;
 
    @ApiModelProperty(value = "最后登录IP")
    private String lastLoginIp;
 
    @ApiModelProperty(value = "状态 0 正常 1冻结，默认0")
    private String status;
 
    @ApiModelProperty(value = "迁移时原ID（原mc_user.id）")
    private Long migrateId;
 
    @ApiModelProperty(value = "null")
    private String createdBy;
 
    @ApiModelProperty(value = "null")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;
 
    @ApiModelProperty(value = "null")
    private String lastUpdatedBy;
 
    @ApiModelProperty(value = "null")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastUpdatedTime;
 
    public Long getTenantUserId() {
        return tenantUserId;
    }

    public void setTenantUserId(Long tenantUserId) {
        this.tenantUserId = tenantUserId;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getTenantOperatorCode() {
        return tenantOperatorCode;
    }

    public void setTenantOperatorCode(String tenantOperatorCode) {
        this.tenantOperatorCode = tenantOperatorCode;
    }

    public Long getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Long enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public Long getEnterpriseMemberId() {
        return enterpriseMemberId;
    }

    public void setEnterpriseMemberId(Long enterpriseMemberId) {
        this.enterpriseMemberId = enterpriseMemberId;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public Long getTenantRoleId() {
        return tenantRoleId;
    }

    public void setTenantRoleId(Long tenantRoleId) {
        this.tenantRoleId = tenantRoleId;
    }

    public Long getTenantOrgId() {
        return tenantOrgId;
    }

    public void setTenantOrgId(Long tenantOrgId) {
        this.tenantOrgId = tenantOrgId;
    }

    public String getTenantOrgTag() {
        return tenantOrgTag;
    }

    public void setTenantOrgTag(String tenantOrgTag) {
        this.tenantOrgTag = tenantOrgTag;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getMigrateId() {
        return migrateId;
    }

    public void setMigrateId(Long migrateId) {
        this.migrateId = migrateId;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdatedTime() {
        return lastUpdatedTime;
    }

    public void setLastUpdatedTime(Date lastUpdatedTime) {
        this.lastUpdatedTime = lastUpdatedTime;
    }

}
